package com.wl4837;

/**
 * 经理
 */
public class Manager extends Approver {
    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getAmount() <= 5000) {
            System.out.println("经理审批采购单：" + request.getNumber()
                    + "，金额：" + request.getAmount() + "元，目的：" + request.getPurpose());
        } else if (successor != null) {
            successor.processRequest(request); // 转发给上级
        }
    }
}
